/**
 * <p>
 *
 * @Author：Roy
 * @Description：楼栋
 * @Date：Create by 2023-11-23 09:55:22
 */
import request from '@/utils/request'

const sceneEdifice = {
  // 分页查询楼栋
  queryList(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneEdifice/queryPage',
      method: 'post',
      data
    })
  },
  // 新增楼栋
  add(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneEdifice/add',
      method: 'post',
      data
    })
  },
  // 编辑楼栋
  update(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneEdifice/update',
      method: 'post',
      data
    })
  },
  // 删除楼栋
  deleteById(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneEdifice/deleteById',
      method: 'post',
      data
    })
  },
  // 启用禁用
  enableOrDisable(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneEdifice/enableOrDisable',
      method: 'post',
      data
    })
  },
  // 批量删除楼栋
  batchDelete(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneEdifice/batchDelete',
      method: 'post',
      data
    })
  },
  getrange(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneEdifice/getrange',
      method: 'post',
      data
    })
  }
}

export default sceneEdifice
